<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>gbmath: gbmath::triangle Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">gbmath
   &#160;<span id="projectnumber">v0.051</span>
   </div>
   <div id="projectbrief">c++ math library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacegbmath.html">gbmath</a></li><li class="navelem"><a class="el" href="classgbmath_1_1triangle.html">triangle</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classgbmath_1_1triangle-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">gbmath::triangle Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Triangle by three points.  
 <a href="classgbmath_1_1triangle.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="triangle_8h_source.html">triangle.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae42b022aad88deeb4032c704453f33f4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#ae42b022aad88deeb4032c704453f33f4">triangle</a> ()</td></tr>
<tr class="separator:ae42b022aad88deeb4032c704453f33f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f90804403df912840c7b8d70aaeccec"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#a7f90804403df912840c7b8d70aaeccec">triangle</a> (const <a class="el" href="classgbmath_1_1triangle.html">triangle</a> &amp;t)</td></tr>
<tr class="separator:a7f90804403df912840c7b8d70aaeccec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cab04d466be5b43b5cbe066225e0be8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#a7cab04d466be5b43b5cbe066225e0be8">triangle</a> (const <a class="el" href="structgbmath_1_1vec3.html">vec3</a> _p1, const <a class="el" href="structgbmath_1_1vec3.html">vec3</a> _p2, const <a class="el" href="structgbmath_1_1vec3.html">vec3</a> _p3)</td></tr>
<tr class="separator:a7cab04d466be5b43b5cbe066225e0be8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a928971ee2bc27a59051d9cdaab5289e3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#a928971ee2bc27a59051d9cdaab5289e3">set</a> (const <a class="el" href="structgbmath_1_1vec3.html">vec3</a> _p1, const <a class="el" href="structgbmath_1_1vec3.html">vec3</a> _p2, const <a class="el" href="structgbmath_1_1vec3.html">vec3</a> _p3)</td></tr>
<tr class="separator:a928971ee2bc27a59051d9cdaab5289e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b72cbdb11f18af584ade8ff44a3406e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgbmath_1_1vec3.html">vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#a3b72cbdb11f18af584ade8ff44a3406e">middle_point</a> () const </td></tr>
<tr class="memdesc:a3b72cbdb11f18af584ade8ff44a3406e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute and return the middle point of the triangle.  <a href="#a3b72cbdb11f18af584ade8ff44a3406e">More...</a><br/></td></tr>
<tr class="separator:a3b72cbdb11f18af584ade8ff44a3406e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36da91b10ce64105d5143745754b33b0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgbmath_1_1plane__s.html">plane_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#a36da91b10ce64105d5143745754b33b0">get_plane</a> () const </td></tr>
<tr class="memdesc:a36da91b10ce64105d5143745754b33b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute and return the plane to the points of the triangle.  <a href="#a36da91b10ce64105d5143745754b33b0">More...</a><br/></td></tr>
<tr class="separator:a36da91b10ce64105d5143745754b33b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89e5085e52fc4492c9cf5286a7a4c6ac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#a89e5085e52fc4492c9cf5286a7a4c6ac">operator std::string</a> () const </td></tr>
<tr class="separator:a89e5085e52fc4492c9cf5286a7a4c6ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1ccecdf1ff04ea68d84363f6d67fd4f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#ad1ccecdf1ff04ea68d84363f6d67fd4f">operator=</a> (const std::string &amp;str)  throw (std::invalid_argument)</td></tr>
<tr class="separator:ad1ccecdf1ff04ea68d84363f6d67fd4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a30f4ce4e38b4f8e894ea1c4bead6dbfe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgbmath_1_1vec3.html">vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#a30f4ce4e38b4f8e894ea1c4bead6dbfe">p1</a></td></tr>
<tr class="memdesc:a30f4ce4e38b4f8e894ea1c4bead6dbfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">the first point (vertex) triangular  <a href="#a30f4ce4e38b4f8e894ea1c4bead6dbfe">More...</a><br/></td></tr>
<tr class="separator:a30f4ce4e38b4f8e894ea1c4bead6dbfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e6ed566ebf82bd1e28024e29674db36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgbmath_1_1vec3.html">vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#a1e6ed566ebf82bd1e28024e29674db36">p2</a></td></tr>
<tr class="memdesc:a1e6ed566ebf82bd1e28024e29674db36"><td class="mdescLeft">&#160;</td><td class="mdescRight">the second point (vertex) triangular  <a href="#a1e6ed566ebf82bd1e28024e29674db36">More...</a><br/></td></tr>
<tr class="separator:a1e6ed566ebf82bd1e28024e29674db36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b0be029bee99a47d11ce4c4c43031a4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgbmath_1_1vec3.html">vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#a2b0be029bee99a47d11ce4c4c43031a4">p3</a></td></tr>
<tr class="memdesc:a2b0be029bee99a47d11ce4c4c43031a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">the third point (vertex) triangular  <a href="#a2b0be029bee99a47d11ce4c4c43031a4">More...</a><br/></td></tr>
<tr class="separator:a2b0be029bee99a47d11ce4c4c43031a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ac7b0b33d452d732e269ecaeb06bb93ba"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgbmath_1_1triangle.html#ac7b0b33d452d732e269ecaeb06bb93ba">operator&lt;&lt;</a> (std::ostream &amp;stream, const <a class="el" href="classgbmath_1_1triangle.html">triangle</a> &amp;t)</td></tr>
<tr class="separator:ac7b0b33d452d732e269ecaeb06bb93ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Triangle by three points. </p>

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00018">18</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae42b022aad88deeb4032c704453f33f4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::triangle::triangle </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00026">26</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7f90804403df912840c7b8d70aaeccec"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::triangle::triangle </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgbmath_1_1triangle.html">triangle</a> &amp;&#160;</td>
          <td class="paramname"><em>t</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00031">31</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7cab04d466be5b43b5cbe066225e0be8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::triangle::triangle </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec3.html">vec3</a>&#160;</td>
          <td class="paramname"><em>_p1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec3.html">vec3</a>&#160;</td>
          <td class="paramname"><em>_p2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec3.html">vec3</a>&#160;</td>
          <td class="paramname"><em>_p3</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00036">36</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a36da91b10ce64105d5143745754b33b0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgbmath_1_1plane__s.html">plane_s</a> gbmath::triangle::get_plane </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compute and return the plane to the points of the triangle. </p>

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00059">59</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3b72cbdb11f18af584ade8ff44a3406e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgbmath_1_1vec3.html">vec3</a> gbmath::triangle::middle_point </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compute and return the middle point of the triangle. </p>

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00049">49</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<a class="anchor" id="a89e5085e52fc4492c9cf5286a7a4c6ac"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">gbmath::triangle::operator std::string </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00086">86</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad1ccecdf1ff04ea68d84363f6d67fd4f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void gbmath::triangle::operator= </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>)</td><td></td>
          <td></td>
        </tr>
        <tr>
          <td align="right">throw </td><td>(</td><td colspan="2">std::invalid_argument</td>
        </tr>
        <tr>
          <td align="right"></td><td>)</td><td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00093">93</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<a class="anchor" id="a928971ee2bc27a59051d9cdaab5289e3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void gbmath::triangle::set </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec3.html">vec3</a>&#160;</td>
          <td class="paramname"><em>_p1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec3.html">vec3</a>&#160;</td>
          <td class="paramname"><em>_p2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structgbmath_1_1vec3.html">vec3</a>&#160;</td>
          <td class="paramname"><em>_p3</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00043">43</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="ac7b0b33d452d732e269ecaeb06bb93ba"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classgbmath_1_1triangle.html">triangle</a> &amp;&#160;</td>
          <td class="paramname"><em>t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00080">80</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a30f4ce4e38b4f8e894ea1c4bead6dbfe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgbmath_1_1vec3.html">vec3</a> gbmath::triangle::p1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the first point (vertex) triangular </p>

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00021">21</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1e6ed566ebf82bd1e28024e29674db36"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgbmath_1_1vec3.html">vec3</a> gbmath::triangle::p2</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the second point (vertex) triangular </p>

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00022">22</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2b0be029bee99a47d11ce4c4c43031a4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structgbmath_1_1vec3.html">vec3</a> gbmath::triangle::p3</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the third point (vertex) triangular </p>

<p>Definition at line <a class="el" href="triangle_8h_source.html#l00023">23</a> of file <a class="el" href="triangle_8h_source.html">triangle.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="triangle_8h_source.html">triangle.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<!--address class="footer"-->
<!--small-->
<br>
&nbsp;&nbsp;&nbsp;<b>Project page:</b> &nbsp;<a target="_blank" href="https://code.google.com/p/gbmath/">https://code.google.com/p/gbmath/</a>&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;<b>Doc page:</b> &nbsp;<a target="_blank" href="http://www.it.ks777.ru/docs">http://www.it.ks777.ru/docs</a>&nbsp;&nbsp;<br>
<br>
Generated on Sat Jul 27 2013 08:09:04 for gbmath by &#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
